home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 February: Technology Seed / Mac Tech Seed Feb '97.toast / OpenDoc 1.2b2c1 / TestParts / Clock / ClockObj.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-01-01  |  1.8 KB  |  69 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        ClockObj.h
  3.  
  4.     Contains:    Interface to OSL support routines for the ClockPart
  5.  
  6.     Owned by:    Jon Pugh
  7.  
  8.     Copyright:    © 1993 - 1995 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.          <1>     6/13/95    JP        first checked in
  13.     To Do:
  14. */
  15.  
  16. #ifndef _CLOCKOBJ_
  17. #define _CLOCKOBJ_
  18.  
  19. #ifndef _PLFMDEF_
  20. #include "PlfmDef.h"
  21. #endif
  22.  
  23. //==============================================================================
  24. // Constants
  25. //==============================================================================
  26.  
  27. //==============================================================================
  28. // Forward Declaration
  29. //==============================================================================
  30.  
  31. class ODPart;
  32. class ODOSLToken;
  33. class ODDesc;
  34. class ODAppleEvent;
  35. class SIHelper;
  36. class ClockPart;
  37.  
  38. //==============================================================================
  39. // Event Handlers and Object Accessors and Coercion Handlers.
  40. //==============================================================================
  41.  
  42.  
  43.  
  44. static pascal ODError GetPropertyFromNULL(    ODPart*                part,
  45.                                             DescType            desiredClass,
  46.                                             ODOSLToken*            container,
  47.                                             DescType            containerClass,
  48.                                             DescType            form,
  49.                                             ODDesc*                selectionData,
  50.                                             ODOSLToken*            value,
  51.                                             ODSLong                refCon);
  52.  
  53.  
  54. static pascal ODError HandleSetData(ODPart*            part,
  55.                                     ODAppleEvent*    message,
  56.                                     ODAppleEvent*    reply,
  57.                                     ODSLong            handlerRefcon);
  58. static pascal ODError HandleGetData(ODPart*            part,
  59.                                     ODAppleEvent*    message,
  60.                                     ODAppleEvent*    reply,
  61.                                     ODSLong            handlerRefcon);
  62.  
  63. static pascal ODError ClockDisposeToken(ODPart* thePart, ODOSLToken* unneededToken,
  64.         ODSLong refCon);
  65.  
  66. void InstallStaticCallbacks(SIHelper* helper, ClockPart* clock);
  67.  
  68. #endif // _CLOCKOBJ_
  69.